import 'dart:convert';

import 'package:enterprise_v6_app/app/data/entities/application/basic_information/third_party_user_train_record_entity.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/third_party_user_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/third_party_user_entity.g.dart';

/// 第三方人员详情
@JsonSerializable()
class ThirdPartyUserEntity {
  ThirdPartyUserEntity();

  factory ThirdPartyUserEntity.fromJson(Map<String, dynamic> json) => $ThirdPartyUserEntityFromJson(json);
  int? age = 0;
  String? blackReason = '';
  String? certificateBeginDate = '';
  String? certificateEndDate = '';
  String? certificateLevel = '';
  String? certificateName = '';
  String? certificateNum = '';
  List<ThirdPartyUserTrainRecordEntity>? children = [];
  String? companyCode = '';
  String? createBy = '';
  String? createById = '';
  String? createDate = '';
  String? deleted = '';
  int? highRisk = 0;
  String? id = '';
  String? idCard = '';
  String? passRate = '';
  String? phone = '';
  String? position = '';
  String? thirdPartyId = '';
  String? thirdPartyName = '';
  String? updateBy = '';
  String? updateById = '';
  String? updateDate = '';
  String? userImageUrl = '';
  String? userName = '';
  String? userStatus = '';

  Map<String, dynamic> toJson() => $ThirdPartyUserEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
